<?php 
include("../../conexion.php");

$sql =mysql_query("SELECT * FROM cert_supervivencia WHERE cert_supervivencia.swt_capacidad = 'C'",$conn) or die(mysql_error());

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../../includes/css/jquery-ui-notarios.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" href="../../tcal.css" />
<link href="../../includes/css/jquery-ui-notarios.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" href="../../includes/css/uniform.default.min.css" />



<script language="JavaScript" type="text/javascript" src="../../ajax.js"></script>
<script type="text/javascript" src="../../tcal.js"></script> 
<script type="text/javascript" src="../includes/Mantenimientos.js"></script> 
<script src="../../includes/jquery-1.8.3.js"></script>
<script src="../../includes/js/jquery-ui-notarios.js"></script>
<script src="../../includes/jquery.uniform.min.js"></script>
<script type="text/javascript" src="../../tcal.js"></script> 

<title>Untitled Document</title>
<style type="text/css">
<!--
.titubuskar {
	font-family: Calibri;
	font-size: 12px;
	font-weight: bold;
	font-style: italic;
	color: #003366;
}
.titubuskar0 {font-family: Calibri; font-size: 12px; font-style: italic; font-weight: bold; color: #333333; }
.titubuskar1 {color: #333333}
.reskar2 {font-family: Calibri; font-size: 13px; font-weight: bold; font-style: italic; color: #003366; }
.reskar {font-size: 12px; font-style: italic; color: #333333; font-family: Calibri;}
-->
</style>
<script type="text/javascript">

$(document).ready(function()
{
		cargakardex(0)
	});

function cargakardex(limite)
{
	var url="busqueda_capaz.php";
	$.post(url,{estado : "1",limite: limite},function (responseText){
		    $("#bkardex").html(responseText);
	  });
}


function buscaPCAPAZ () 
{
  var _numformu = $('#numformu').val();
  var _pcapaz = $('#pcapaz').val();
  var _direccionca = $('#direccionca').val();
  var _rangoca1 = $('#rangoca1').val();
  var _rangoca2 = $('#rangoca2').val();
	 
	  if(_numformu=='' && _pcapaz=='' && _direccionca=='' && _rangoca1=='' && _rangoca2=='')
	{
		var limite     = 0;
		var _estado    = "1";	 
	}
	else if(_numformu!='' || _pcapaz!='' || _direccionca!='' || _rangoca1!='' || _rangoca2!=''){
		var limite     = 0;
		var _estado    = "2"; 
		
		}
		
		
	 var _data =
	 {
		numformu 		: _numformu,
		pcapaz   		: _pcapaz,
		direccionca 	: _direccionca,
		rangoca1    	: _rangoca1,
		rangoca2 		: _rangoca2,
		estado 			: _estado,
		limite			: limite
	 }
	 $('#bkardex').load("busqueda_capaz.php",_data);
	 return false;
}

</script>
</head>

<body>
<table width="858" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="846" height="25"><span class="reskar2">Busqueda Por:</span></td>
    <td width="12" rowspan="2">&nbsp;</td>
  </tr>
  <tr>
    <td><form name="frmbuscakardex" method="post" action="">
      <table width="846" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="60"><span class="titubuskar0">N° crono :</span></td>
          <td width="74"><span class="titubuskar0">
            <label>
            <input name="numformu" type="text" id="numformu" size="12" >
            </label>
          </span></td>
          
        <td width="125" align="right"><span class="titubuskar0">Nombre P. Capaz:</span></td>
          <td width="220"><span class="titubuskar0">
            <input type="text" name="pcapaz" id="pcapaz" size="30" />
          </span></td>
         <td width="66" align="right"><span class="titubuskar0"><!--Direccion :--></span></td>
          <td width="204"><span class="titubuskar0">
           <!-- <input type="text" name="direccionca" id="direccionca" size="30" />-->
          </span></td>
        
        
        
        
          <td width="97"><span class="titubuskar1">
       
           </span></td>
          </tr>
          <tr>	
          <td>&nbsp;</td>
          </tr>
      </table>
      
      <table>
        <tr>
          <td width="137"><span class="reskar2">Busqueda por fecha:</span></td>
      	</tr>
      </table>
      
      <table>
           <tr>
              	<td width="56" align="right"><span class="titubuskar0">Desde</span></td>
                <td width="85"><span class="titubuskar0">
                  <input name="rangoca1" type="text" id="rangoca1" class="tcal" style="text-transform:uppercase"  size="10" />
                </span></td>
                <td width="63" align="center"><span class="titubuskar0">Hasta</span></td>
                <td width="84"><label>
                                   <input name="rangoca2" type="text" id="rangoca2" class="tcal" style="text-transform:uppercase"  size="10" />
                </label></td>
                   <td width="375"><label><a onclick="buscaPCAPAZ()"><img src="../../iconos/buscarclie.png" width="72" height="29" border="0" /></a>
                </label></td>
           </tr>
      </table>
    </form>   </td>
  </tr>
  <tr>
    <td colspan="2">--------------------------------------------------------------------------------------------------------------------------------------------</td>
  </tr>
  <tr>
    <td colspan="2"><div id="gennn" style="width:860px; height:690px; overflow:auto;">
      <table width="200" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><table width="880" border="1" cellpadding="0" cellspacing="0" bordercolor="#333333" bgcolor="#CCCCCC">
            <tr>
              <td width="63" align="center"><span class="titubuskar0">Cronologico</span></td>
              <td width="86" align="center"><span class="titubuskar0">Fecha</span></td>
              <td width="150" align="center"><span class="titubuskar0">Nombre</span></td>
              <td width="86" align="center"><span class="titubuskar0">Direccion</span></td>
              <td width="86" align="center"><span class="titubuskar0">Tipo persona</span></td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td><div id="bkardex">
       
          </div></td>
        </tr>
      </table>
    </div></td>
  </tr>
</table>

</body>
</html>



